package com.insurance.service.impl;

import com.insurance.mapper.BankMapper;
import com.insurance.pojo.InsuranceCom;
import com.insurance.service.BankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User1: 李辽
 * Date: 2020/10/28 8:41
 * Description:
 * Version: V1.0
 */
@Service
public class BankServiceImpl implements BankService {

    @Autowired(required = false)
    private BankMapper bankMapper;


    @Override
    public int addinsuranceCom(InsuranceCom insuranceCom) {

        return bankMapper.addinsuranceCom(insuranceCom);
    }

    @Override
    public List<Map> queryinsuranceCom(String insurance_com_name) {
        return bankMapper.queryinsuranceCom(insurance_com_name);
    }

    @Override
    public List<Map> queryBankName(String insurance_com_name) {

        return bankMapper.queryBankName(insurance_com_name);
    }

    @Override
    public int updateInsuranceCom(InsuranceCom insuranceCom) {
        return bankMapper.updateInsuranceCom(insuranceCom);
    }
}
